package com.happy.entity;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * UserInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "user_info", catalog = "sec")
public class UserInfo implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 2891813295271423237L;
	private Integer id;
	private Integer userId;
	private String  sysstemId;
	private String userName;
	private String userEmail;
	private String userPhone;
	private String userAddres;

	// Constructors

	/** default constructor */
	public UserInfo() {
	}

	/** full constructor */
	public UserInfo(Integer userId,String sysId, String userName, String userEmail,
			String userPhone, String userAddres) {
		this.userId = userId;
		this.sysstemId=sysId;
		this.userName = userName;
		this.userEmail = userEmail;
		this.userPhone = userPhone;
		this.userAddres = userAddres;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "user_id")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "user_name", length = 25)
	public String getUserName() {
		return this.userName;
	}
	@Column(name = "sysstemId", length = 25)
	public String getSysstemId() {
		return this.sysstemId;
	}
	public void setSysstemId(String SysstemId) {
		this.userName = SysstemId;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "user_email")
	public String getUserEmail() {
		return this.userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	@Column(name = "user_phone", length = 25)
	public String getUserPhone() {
		return this.userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	@Column(name = "user_addres")
	public String getUserAddres() {
		return this.userAddres;
	}

	public void setUserAddres(String userAddres) {
		this.userAddres = userAddres;
	}

}